.detail-page {
    background: #fff;
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  }
  .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 0 16px;
    font-size: 22px;
    position: relative;
  }
  .icon-back, .icon-fav {
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: box-shadow 0.2s, background 0.2s;
    user-select: none;
  }
  .icon-back:active, .icon-fav:active {
    background: #f5f5f5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
  }
  .icon-back {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
  }
  .icon-fav {
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 2;
  }
  .detail-img-box {
    width: 100%;
    height: 220px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .detail-img {
    max-width: 90%;
    max-height: 200px;
    border-radius: 12px;
    object-fit: cover;
  }
  .detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
  }
  .detail-title {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 8px 0;
  }
  .detail-meta {
    font-size: 13px;
    color: #888;
  }
  .detail-sold {
    margin-right: 12px;
  }
  .detail-star {
    color: #f90;
  }
  .detail-reviews {
    color: #888;
    font-size: 12px;
  }
  .detail-desc {
    padding: 0 16px 16px 16px;
  }
  .desc-title {
    font-weight: bold;
    margin-bottom: 4px;
  }
  .desc-content {
    color: #555;
    font-size: 14px;
  }
  .detail-attrs {
    padding: 0 16px 16px 16px;
  }
  .attr-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
  }
  .attr-label {
    width: 40px;
    color: #888;
    font-size: 14px;
  }
  .attr-btn {
    margin: 0 8px;
    padding: 4px 12px;
    border: 1px solid #ddd;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
  }
  .attr-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
  }
  .color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #eee;
    margin: 0 6px;
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  }
  .color-btn.color-active {
    border: 2px solid #222;
    box-shadow: 0 0 0 2px #2222;
  }
  .num-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #eee;
    border-radius: 50%;
    font-size: 18px;
    margin: 0 8px;
    cursor: pointer;
  }
  .num-value {
    min-width: 24px;
    text-align: center;
    display: inline-block;
  }
  .detail-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    z-index: 10;
  }
  .detail-price {
    font-size: 20px;
    font-weight: bold;
    color: #222;
  }
  .add-cart-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 10px 32px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
  }
  .favActive {
    color: #ff4d4f !important;
    transition: color 0.2s;
  }
  .cart-message {
    position: fixed;
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%);
    background: rgba(34,34,34,0.95);
    color: #fff;
    padding: 18px 32px;
    border-radius: 16px;
    font-size: 18px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    text-align: center;
    pointer-events: none;
    animation: cartmsgfade 1.5s;
  }
  @keyframes cartmsgfade {
    0% { opacity: 0; transform: translate(-50%, -60%);}
    10% { opacity: 1; transform: translate(-50%, -50%);}
    90% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -40%);}
  }
